﻿namespace MyFloridaHouse.libSvDTO
{
	/// <summary>
	/// BoundingBoxDTO class describes opposing corners of a bounding rectangle.
	/// </summary>
    public class BoundingBoxDTO
    {
		/// <summary>
		/// Gets or sets the north west corner of bounding box.
		/// </summary>
		/// <value>The north west.</value>
        public PointDTO northWest { get; set; }
		/// <summary>
		/// Gets or sets the south east corner of bounding box.
		/// </summary>
		/// <value>The south east.</value>
        public PointDTO southEast { get; set; }

        public BoundingBoxDTO()
        {
            this.northWest = new PointDTO();
            this.southEast = new PointDTO();
        }

        public BoundingBoxDTO(double north, double west, double south, double east)
        {
            this.northWest = new PointDTO();
            this.northWest.latitude = north;
            this.northWest.longitude = west;
            this.southEast = new PointDTO();
            this.southEast.latitude = south;
            this.southEast.longitude = east;
        }

    }
}
